package com.edee.bigday.coupon.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 秒杀活动场次
 *
 * @author edee
 * @email 421763094@qq.com
 * @date 2020-12-13 20:02:05
 */
@Data
@TableName("sms_seckill_session")
public class SeckillSessionEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Long id;
    /**
     * 场次名称
     */
    private String name;
    /**
     * 每日开始时间
     */
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    @JsonFormat(timezone = "GMT+8")
//    @JsonFormat(timezone = "CST")
    private Date startTime;
    /**
     * 每日结束时间
     */
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    @JsonFormat(timezone = "GMT+8")
//    @JsonFormat(timezone = "CST")
    private Date endTime;
    /**
     * 启用状态
     */
    private Integer status;
    /**
     * 创建时间
     */
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    @JsonFormat(timezone = "GMT+8")
//    @JsonFormat(timezone = "CST")
    private Date createTime;

    /**
     * 秒杀活动-商品关联关系
     */
    @TableField(exist = false)
    private List<SeckillSkuRelationEntity> skuRelationEntities;
}
